Repository navigation
Check a held pull request again when the checks that held it change - #545
Merged
Merged
Conversation
A finished run's pull request stayed a draft on an Open items line a wrong rule wrote. The rule was fixed, but the line was text in the description and nothing checked it again, so the hold stayed until a person edited it. - Every blocked line names the version of the code that wrote it: a hash of the worker's and the common crate's sources (worker/build.rs). - When the ready decision finds a pull request held on a line other code wrote, the run checks it again on its head in a fresh step that resumes at the checks, once per run and code version (claimed on the run record), and the pull request waits for that instead of staying held on the old line. Results the link, failing-test and new-feature checks recorded under other code run again even on an unchanged head; their fix rounds still count. - The run guard counts a fall in the plan check's count and its return as progress only when the run's coder wrote code in between, and the plan check at a step's start measures with the stacked base like every other. - Incident case w_stale_hold_recheck.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A finished run's pull request stayed a draft on an Open items line a wrong rule wrote ("the change makes the staging content its end-to-end tests read out of date"). The rule was fixed, but holds are text in the description and nothing checked them again, so the pull request stayed held until a person edited it. The same run also spent three fresh steps writing nothing while the run guard counted each return of the plan check's count (23 back to 37) as progress.
Changes
<!-- coderhelm:checked-by <version> -->). The version is a hash of the worker's and the common crate's sources, computed inworker/build.rs, so it is the same wherever the same code runs and changes whenever that code does. A line with no version counts as written by older code.ready::recheck_due, newpasses/recheck.rs). When a pull request is held on a blocked line other code wrote,settleclaims the re-check on the run record (recheck_version, one conditional write, never for a run the guard stopped, a pull request a person put back to draft, or a closed one) and queues a fresh step of the run that resumes at the checks on the open pull request (recheck_at_checks). The step message is rebuilt from the run record. The pull request waits for that step instead of staying held on the old line, and the run then finishes as any run does:settlemarks it ready or records the holds that are still true. A security audit that passed is carried; one with open items runs again.Ledger::for_checks_version) for the link, failing-test and new-feature checks, the ones whose failure is a hold. Their fix rounds still count. The proof check's result stands, because its gaps are never a check the change didn't pass.implement::run, the one place every round writes, reports this. The plan check at the start of a step now measures with the stacked base, like every other plan check. Measuring the branch's own diff there read 23 of 38 at each step's start, 37 after, and told the coder 14 tasks were missing that weren't.w_stale_hold_recheck;u_stacked_plan_checkupdated so a recovery needs code written;docs/incidents.mdrow.Verification
cargo fmt --all -- --check: clean.cargo clippy -p common -p worker -p gateway --all-targets -- -D warnings: clean.cargo test -q -p common -p gateway -p worker: common 1634 passed, gateway 798 passed, worker 1425 passed, 0 failed. This includes the incident suite (108 cases) and the neww_stale_hold_rechecktests: